package com.foreknow.demo08;

import com.sun.org.apache.bcel.internal.generic.RETURN;

import java.util.Scanner;

public class Game {
    Scanner scan = new Scanner(System.in);
//    Person p = new Person();
    public static void main(String[] args) {


    }
    public void showMenu(){
        System.out.println("-------------------欢迎进入游戏世界-----------------");
        System.out.println("--------------------猜拳开始------------------------");
        System.out.println("----------------------------------------------------");
    }

    public String gameStartMenu(){
        String roleName ="";
        String isStart = "";
        System.out.println("出拳规则:1.剪刀 2.石头 3.布");
        System.out.println("请选择对方角色：1.刘备 2.孙权 3.曹操");
        int roleNum = scan.nextInt();
        System.out.println("请输入你的姓名");
        String userName = scan.next();
        switch (roleNum){
            case 1:
                roleName = "刘备";
                break;
            case 2:
                roleName = "孙权";
                break;
            case 3:
                roleName = "曹操";
                break;
        }
        System.out.println(userName+""+ "VS" + roleName + "对战");
        System.out.print("要开始么？(y/n)");
        isStart = scan.next();
        return isStart;
    }
}
